package com.jbp.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jbp.model.UserDailyLuckRecord;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;

/**
 * 每日用户抽奖统计(UserDailyLuckRecord)表数据库访问层
 * @author cc
 * @since 2020-08-23 14:32:08
 */
public interface UserDailyLuckRecordDao extends BaseMapper<UserDailyLuckRecord> {

    BigDecimal getPayToday(Integer userId);

    BigDecimal getPayToday2(Integer userId, String poolType);

    HashMap<String, Object> getLuckToday(Integer userId, String poolType);

    BigDecimal getAllPay(int userId);

    BigDecimal getPayByType(int userId, String poolType);

    HashMap<String, BigDecimal> getLuckByType(int userId, String poolType);

    List<UserDailyLuckRecord> getRecordDate(Integer price);

    HashMap<String, BigDecimal> getLuckByRoomId(Integer roomId);

    HashMap<String, BigDecimal> getLuckByIp(String ip);

    HashMap<String, BigDecimal> getLuckByDevice(String device);

    HashMap<String, BigDecimal> getLuckByUser(Integer userId);
}